package com.kedou.sdk.params;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2017/6/7 0007.
 */

public class TencentLoginRequestParams extends BaseRequestParams implements Parcelable {

    private static final String SERVICE = "txonemobile";

    /**
     * 绑定的手机号码
     */
    private String token;

    /**
     * 手机验证码
     */
    private String carrier;

    public TencentLoginRequestParams(String token, String carrier) {
        this.token = token;
        this.carrier = carrier;
    }

    @Override
    public String getServiceString() {
        return SERVICE;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getCarrier() {
        return carrier;
    }

    public void setCarrier(String carrier) {
        this.carrier = carrier;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeString(this.token);
        dest.writeString(this.carrier);
    }

    protected TencentLoginRequestParams(Parcel in) {
        super(in);
        this.token = in.readString();
        this.carrier = in.readString();
    }

    public static final Creator<TencentLoginRequestParams> CREATOR = new Creator<TencentLoginRequestParams>() {
        @Override
        public TencentLoginRequestParams createFromParcel(Parcel source) {
            return new TencentLoginRequestParams(source);
        }

        @Override
        public TencentLoginRequestParams[] newArray(int size) {
            return new TencentLoginRequestParams[size];
        }
    };
}
